type TProps = {
  label: string,
  id: string
}
const FormItem = (props: TProps, ctx: any) => {
  // 传递参数
  const {
    label='label',
    id='value'
  } = props
  return (
    <div class="flex flex-column gap-2">
      <label for={id} class='text-lg font-medium'>{ label }</label>
      { ctx.slots.default() }
    </div>
  )
}
export default FormItem
